package com.ruoyi.memberLevel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.memberLevel.mapper.ErpLevelMapper;
import com.ruoyi.memberLevel.domain.ErpLevel;
import com.ruoyi.memberLevel.service.IErpLevelService;

/**
 * 会员级别Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-12
 */
@Service
public class ErpLevelServiceImpl implements IErpLevelService 
{
    @Autowired
    private ErpLevelMapper erpLevelMapper;

    /**
     * 查询会员级别
     * 
     * @param id 会员级别主键
     * @return 会员级别
     */
    @Override
    public ErpLevel selectErpLevelById(Long id)
    {
        return erpLevelMapper.selectErpLevelById(id);
    }

    /**
     * 查询会员级别列表
     * 
     * @param erpLevel 会员级别
     * @return 会员级别
     */
    @Override
    public List<ErpLevel> selectErpLevelList(ErpLevel erpLevel)
    {
        return erpLevelMapper.selectErpLevelList(erpLevel);
    }

    /**
     * 新增会员级别
     * 
     * @param erpLevel 会员级别
     * @return 结果
     */
    @Override
    public int insertErpLevel(ErpLevel erpLevel)
    {
        return erpLevelMapper.insertErpLevel(erpLevel);
    }

    /**
     * 修改会员级别
     * 
     * @param erpLevel 会员级别
     * @return 结果
     */
    @Override
    public int updateErpLevel(ErpLevel erpLevel)
    {
        return erpLevelMapper.updateErpLevel(erpLevel);
    }

    /**
     * 批量删除会员级别
     * 
     * @param ids 需要删除的会员级别主键
     * @return 结果
     */
    @Override
    public int deleteErpLevelByIds(Long[] ids)
    {
        return erpLevelMapper.deleteErpLevelByIds(ids);
    }

    /**
     * 删除会员级别信息
     * 
     * @param id 会员级别主键
     * @return 结果
     */
    @Override
    public int deleteErpLevelById(Long id)
    {
        return erpLevelMapper.deleteErpLevelById(id);
    }
}
